/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rw.ac.kiosc.jdbc.school.dao;

import java.util.List;
import rw.ac.kiosc.jdbc.school.orm.Department;
import rw.ac.kiosc.jdbc.school.orm.Student;

/**
 *s
 * @author antoine
 */
public interface DepartmentDAO {

    public Department saveDepartment(Department department);

    public Department updateDepartment(Department department);

    public Department saveOrUpdateDepartment(Department department);

    public boolean deleteDepartment(Department department);

    public Department getDepartmentById(int departmentId);

    public Department getDepartmentByAcronym(String acronym);

    public List<Department> getAllDepartments();

    public List<Department> getDepartmentsByName(String departmentName);

    public List<Department> getDepartmentsByNumberOfYears(int noy);

    public Department getDepartmentByStudent(Student student);
}
